FROM xianzixiang/jupyter_grader:2.0.2

ADD ./container /opt

# RUN ls /opt/bin

# RUN mkdir /home 2 >/dev/null
USER root

#fix bugs
# RUN pip install --no-cache-dir jupyter-client==6.1.12

RUN mkdir -p /srv/nbgrader/exchange && chmod 777 /srv/nbgrader/exchange

RUN chmod +x /opt/bin/configSys.sh && /opt/bin/configSys.sh

RUN chmod +x /opt/bin/grader.sh && chmod +x /opt/bin/jupyterconf.sh && /opt/bin/jupyterconf.sh


#  RUN jupyter nbextension install --sys-prefix --py nbgrader --overwrite && \
# jupyter nbextension disable --sys-prefix create_assignment/main && \
# jupyter nbextension disable --sys-prefix formgrader/main --section=tree  && \
# jupyter serverextension disable --sys-prefix nbgrader.server_extensions.formgrader


